<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>查看部门信息</title>
<!-- 由于REST风格的url带来了相对路径问题，通过base重设相对路径 ，使HTML上下文中的资源路径可以从web根目录开始。-->
<base href="<c:url value="/" />" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="static/kendoui/styles/kendo.common.min.css" rel="stylesheet" />
<link href="static/kendoui/styles/kendo.default.min.css" rel="stylesheet" />

<script src="static/kendoui/js/jquery.min.js"></script>
<script src="static/kendoui/js/kendo.web.min.js"></script>

</head>
<body>
<h2>查看部门信息</h2>
<div><a href="base/department/add?pid=${department.id}">添加下属部门</a></div>
<table>
	<tr>
		<td>部门名称</td>
		<td>${department.name}</td>
		<td></td>
	</tr>
	<tr>
		<td>部门编号</td>
		<td>${department.code}</td>
		<td></td>
	</tr>
	<tr>
		<td>显示顺序</td>
		<td>${department.dsporder}</td>
		<td></td>
	</tr>
	<tr>
		<td>部门经理</td>
		<td>
			<c:if test="${department.manager!=null}">
				<a href="" title="查看人事卡片"/>${department.manager.name}</a>
			</c:if>
		</td>
		<td></td>
	</tr>
	<tr>
		<td>描述</td>
		<td>${department.description}</td>
		<td></td>
	</tr>
</table>
	
</body>
</html>